7931ee7f8f798e0c64ca6f68cb731e98975af0e0,org.eclipse.triquetrum.workflow.editor/src/main/java/org/eclipse/triquetrum/workflow/editor/features/PortAddFeature.java,PortAddFeature,add,#IAddContext#,70

Before Change


    Rectangle invisibleRectangle; // need to access it later
    {
      invisibleRectangle = gaService.createInvisibleRectangle(containerShape);
      gaService.setLocationAndSize(invisibleRectangle, xLocation, yLocation, width, height);

      // add anchors at the right side of the port, depending on it being input or output
      // FIXME for the moment a port can not be both input and output

After Change


      // FIXME for the moment a port can not be both input and output
      FixPointAnchor anchor = peCreateService.createFixPointAnchor(containerShape);
      if (addedPort.isInput()) {
        gaService.setLocationAndSize(invisibleRectangle, 0, yLocation, width, height);
        anchor.setLocation(createService.createPoint(10, 0));
        anchor.setReferencedGraphicsAlgorithm(invisibleRectangle);
        link(anchor, addedPort, BoCategory.Input);